<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>马思特奥赛培训学校网络管理系统</title>
    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no'
          name='viewport'/>

    <link rel="stylesheet" type="text/css" th:href="@{/webjars/bootstrap/3.3.7/css/bootstrap.min.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/asserts/css/ready.min.css}">


    <style>
        * {
            padding: 0px;
            margin: 0px;
        }


        .panel-heading {
            cursor: pointer;
        }

        .myfont {
            font-family: '华文宋体';
            /*color: #88898F;*/
            font-size: 16px
        }

    </style>
</head>
<body>

<div class="wrapper">


    <div class="main-header" th:fragment="header">
        <div class="logo-header">
            <span>马思特奥赛培训学校</span>
            <button class="navbar-toggler sidenav-toggler ml-auto" type="button" data-toggle="collapse"
                    data-target="collapse"
                    aria-controls="sidebar" aria-expanded="false" aria-label="Toggle navigation"
                    style="border: none;background-color: #fff">
                <span class="glyphicon glyphicon-option-vertical"></span>
            </button>
        </div>
        <nav class="navbar navbar-header navbar-expand-lg" style="margin-bottom: 0px">
            <div class="container-fluid">
                <font size="3px;" style="display:flex;margin-top: 15px;">
                    欢迎访问系统！今天是 ：
                    <span style="color: red" th:text="${session.NowDate}"></span>
                    &emsp;当前城市：
                    <span style="color: blue" th:text="${session.city}"></span>
                    &emsp;温度：
                    <span style="color: blue" th:text="${session.temperature}"></span>
                    &emsp;天气：
                    <span style="color: blue" th:text="${session.info}"></span>
                    &emsp;湿度：
                    <span style="color: blue" th:text="${session.humidity}"></span>
                    &emsp;风向：
                    <span style="color: blue" th:text="${session.direct}"></span>
                    &emsp;风力：
                    <span style="color: blue" th:text="${session.power}"></span>
                    &emsp;空气质量：
                    <span style="color: blue" th:text="${session.aqi}"></span>
                    &emsp;明天：
                    <span style="color: blue" th:text="${session.futureWeatherDate}"></span>
                    &emsp;温度：
                    <span style="color: blue" th:text="${session.futureWeatherTemperature}"></span>
                    &emsp;天气：
                    <span style="color: blue" th:text="${session.futureWeatherWeather}"></span>
                </font>
            </div>
        </nav>
    </div>
    <!--<nav class="navbar navbar-header navbar-expand-lg">-->
    <!--<div class="container-fluid">-->
    <!--</div>-->
    <!--</nav>-->
</div>

<div class="sidebar" th:fragment="left">
    <div class="scrollbar-inner sidebar-wrapper" style="overflow:scroll; ">
        <div class="user">
            <div class="photo">
                <img th:src="@{/asserts/img/profile2.jpg}">
            </div>
            <div class="info">
                <a class="" data-toggle="collapse" href="#collapseExample" aria-expanded="true">
								<span>
                                    <span th:if="${session.teacherInfo.verifyFlag==1}">教师</span>
                                    <span th:if="${session.teacherInfo.verifyFlag==0}">助教</span>
									<span class="user-level" th:text="${session.teacherInfo.name}"></span>
									<span class="caret"></span>
								</span>
                </a>
                <div class="clearfix"></div>

                <div class="collapse" id="collapseExample" aria-expanded="true">
                    <ul class="nav">
                        <li>
                            <a th:href="@{/teacher/teacherInfo}">
                                <span class="link-collapse">查看信息</span>
                            </a>
                        </li>
                        <li>
                            <a th:href="@{/teacher/modifyinfo}">
                                <span class="link-collapse">修改信息</span>
                            </a>
                        </li>
                        <li>
                            <a th:href="@{/teacher/updatePwd}">
                                <span class="link-collapse">修改密码</span>
                            </a>
                        </li>
                        <li>
                            <a th:href="@{/teacher/exit}">
                                <span class="link-collapse">退出</span>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="panel-group text-center" id="accordion">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion"
                           href="#collapseOne">
                            请假出差管理
                        </a>
                    </h4>
                </div>
                <div id="collapseOne" class="panel-collapse collapse">
                    <ul class="nav">
                        <li>
                            <a th:href="@{/static/upload_work_page}">
                                <!--<p>出差申请</p>-->
                                <span class="myfont"><strong>出差请假申请</strong></span>
                            </a>
                        </li>
                        <li th:if="${session.teacherInfo.verifyFlag==1}">
                            <a th:href="@{/static/texaminePage}">
                                <span class="myfont"><strong>申请结果</strong></span>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion"
                           href="#collapseTwo">
                            教学汇报管理
                        </a>
                    </h4>
                </div>
                <div id="collapseTwo" class="panel-collapse collapse">
                    <ul class="nav">
                        <li>
                            <a th:href="@{/teacher/term_debriefing}">
                                <span class="myfont"><strong>填写教学汇报表</strong></span>
                            </a>
                        </li>
                        <li>
                            <a th:href="@{/teacher/show_term_debriefing}">
                                <span class="myfont"><strong>查看教学汇报表</strong></span>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>

            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion"
                           href="#collapseThree">
                            课程信息管理
                        </a>
                    </h4>
                </div>
                <div id="collapseThree" class="panel-collapse collapse">
                    <ul class="nav">
                        <li>
                            <a th:href="@{/teacher/show_term_debriefing}">
                                <span class="myfont"><strong>编辑课程信息</strong></span>
                            </a>
                        </li>
                        <li>
                            <a th:href="@{/teacher/show_year_debriefing}">
                                <span class="myfont"><strong>发布课程信息</strong></span>
                            </a>
                        </li>
                        <li>
                            <a th:href="@{/teacher/cxmyProject}">
                                <span class="myfont"><strong>课程发布</strong></span>
                            </a>
                        </li>
                        <li>
                            <a th:href="@{/static/tandexamine}">
                                <span class="myfont"><strong>课程管理</strong></span>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>

            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion"
                           href="#collapseFour">
                            发布在线文件
                        </a>
                    </h4>
                </div>
                <div id="collapseFour" class="panel-collapse collapse">
                    <ul class="nav">
                        <li>
                            <a th:href="@{/teacher/upload_topic_page}">
                                <span class="myfont"><strong>上传作业</strong></span>
                            </a>
                        </li>

                        <!--                        <li>-->
                        <!--                            <a th:href="@{/static/sectionProject}">-->
                        <!--                                <span class="myfont"><strong>作业批改</strong></span>-->
                        <!--                            </a>-->
                        <!--                        </li>-->
                        <li>
                            <a th:href="@{/static/Classindex}">
                                <span class="myfont"><strong>作业查询</strong></span>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>


            <div class="panel panel-default" th:if="${session.teacherInfo.verifyFlag==1}">
                <div class="panel-heading">
                    <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion"
                           href="#collapseFive">
                            学生成绩管理
                        </a>
                    </h4>
                </div>
                <div id="collapseFive" class="panel-collapse collapse">
                    <ul class="nav">
                        <li th:if="${session.teacherInfo.verifyFlag==1}">
                            <a th:href="@{/teacher/getAllFiles}">
                                <span class="myfont"><strong>学生成绩发布</strong></span>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>

    </div>
</div>


</div>

</body>
<script type="text/javascript" th:src="@{/webjars/jquery/1.9.1/jquery.js}"></script>
<script type="text/javascript" th:src="@{/webjars/bootstrap/3.3.7/js/bootstrap.min.js}"></script>
<script type="text/javascript" th:src="@{/asserts/js/ready.min.js}"></script>

</html>